package top.roadvast.pdshopping.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 郭泽鹏
 * @Date 2021/12/27 19:54
 * @Version 1.0
 * @Description 订单类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PdOrder implements Serializable {
    //订单类主键
    private Long orderId;

    //订单编号
    private String orderCode;

    //商品名称
    private String shoppingName;

    //商品编号
    private String shoppingCode;

    //订单状态 0：未支付，1：已支付
    private Boolean status;

    //支付类型
    private Boolean paymentType;

    //邮费
    private Double postFee;

    //创建时间
    //入参格式化
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;
}
